package com.yh.patterns.factory.simple_factory.simple_factory_nvwa;

/**
 * @Auther:云尚学Java
 */
public class Client {
    public static void main(String[] args) {
        Nvwa factory=new Nvwa();
        Person person = factory.createPerson("M");
        Person person1 = factory.createPerson("W");
        System.out.println(person.getName());
        System.out.println(person1.getName());


    }
}
